﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 物料子件表
    /// </summary>
    [SugarTable("ItemSubpieces")]
    public class ItemSubpieces : Audit
    {
        /// <summary>
        /// 物料子件ID
        /// </summary>
        [SugarColumn(IsIdentity =true,IsPrimaryKey =true)]
        public int ItemId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int ProductId { get; set; }

        public string PNumber { get; set; }
        public string PName { get; set; }
        public string PSpec { get; set; }
        public string PUnit { get; set; }
        public string ProductRatio { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int INumber { get; set; }
        /// <summary>
        /// 产品角色
        /// </summary>
        public int IProductPersonas { get; set; }
        /// <summary>
        /// 工艺流程
        /// </summary>
        public string IProcess { get; set; }
        /// <summary>
        /// 耗损率
        /// </summary>
        public decimal IWearRate { get; set; }
        /// <summary>
        /// 领料方式
        /// </summary>
        [SugarColumn(ColumnDataType ="Nvarchar(50)")]
        public string? IPickingMethod { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public int MaterialNode { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string IMRemark { get; set; }



    }
}
